package top.zackyoung.bbs.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.zackyoung.bbs.entity.Log;

import java.util.List;

@Mapper
@Repository
public interface LogMapper {

    int insert(Log record);
    List<Log> queryUserLoginLog(@Param("user_id") Integer user_id, @Param("page") Integer page, @Param("count") Integer count);
    int queryUserLoginLogCount(@Param("user_id") Integer user_id);

}